<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" th:attr="content=${keywords}" />
<meta name="Description" th:attr="content=${description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title></title>
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link th:href="${ecs_css_path}" rel="stylesheet" type="text/css" />

<!-- auto replace start-->
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/user.js"></script>
<!-- auto replace end-->
</head>
<body>
<div th:replace="common/tpls/page_header_tpl::page_header"></div>
<!--当前位置 start-->

  <div th:replace="common/tpls/ur_here_tpl::ur_here"></div>

<!--当前位置 end-->
<div class="blank"></div>
<div class="block clearfix">
  <!--left start-->
  <div class="AreaL">
    <div class="box">
     <div class="box_1">
      <div class="userCenterBox">
        <div th:replace="common/tpls/user_menu_tpl::user_menu"></div>
      </div>
     </div>
    </div>
  </div>
  <!--left end-->
  <!--right start-->
  <div class="AreaR">
    <div class="box">
     <div class="box_1">
      <div class="userCenterBox boxCenterList clearfix" style="_height:1%;">
         <!-- 用户信息界面 start-->
         <!--{if $action eq 'profile'}-->
         <!-- auto replace start-->
<script type="text/javascript" src="/static/js/utils.js"></script>
<!-- auto replace end-->
        <script type="text/javascript">
          {foreach from=$lang.profile_js item=item key=key}
            var  = "";
          {/foreach}
        </script>
      <h5><span></span></h5>
      <div class="blank"></div>
     <form name="formEdit" action="user.php" method="post" onSubmit="return userEdit()">
      <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                  <td width="28%" align="right" bgcolor="#FFFFFF">： </td>
                  <td width="72%" align="left" bgcolor="#FFFFFF"> {html_select_date field_order=YMD prefix=birthday start_year=-60 end_year=+1 display_days=true month_format=%m day_value_format=%02d time=$profile.birthday} </td>
                </tr>
                <tr>
                  <td width="28%" align="right" bgcolor="#FFFFFF">： </td>
                  <td width="72%" align="left" bgcolor="#FFFFFF"><input type="radio" name="sex" value="0" {if $profile.sex==0}checked="checked"{/if} />
                    &nbsp;&nbsp;
                    <input type="radio" name="sex" value="1" {if $profile.sex==1}checked="checked"{/if} />
                    &nbsp;&nbsp;
                    <input type="radio" name="sex" value="2" {if $profile.sex==2}checked="checked"{/if} />
                  &nbsp;&nbsp; </td>
                </tr>
                <tr>
                  <td width="28%" align="right" bgcolor="#FFFFFF">： </td>
                  <td width="72%" align="left" bgcolor="#FFFFFF"><input name="email" type="text" value="" size="25" class="inputBg" /><span style="color:#FF0000"> *</span></td>
                </tr>
        {foreach from=$extend_info_list item=field}
        <!-- {if $field.id eq 6} -->
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">：</td>
          <td width="72%" align="left" bgcolor="#FFFFFF">
          <select name='sel_question'>
          <option value='0'></option>
          {html_options options=$passwd_questions selected=$profile.passwd_question}
          </select>
          </td>
        </tr>
        <tr>
       <td width="28%" align="right" bgcolor="#FFFFFF" <!-- {if $field.is_need} -->id="passwd_quesetion"<!--{/if}-->>：</td>
          <td width="72%" align="left" bgcolor="#FFFFFF">
          <input name="passwd_answer" type="text" size="25" class="inputBg" maxlengt='20' value=""/><!-- {if $field.is_need} --><span style="color:#FF0000"> *</span><!-- {/if} -->
          </td>
        </tr>
        <!-- {else} -->
        <tr>
           <td width="28%" align="right" bgcolor="#FFFFFF" <!-- {if $field.is_need} -->id="extend_fieldi"<!--{/if}-->>：</td>
            <td width="72%" align="left" bgcolor="#FFFFFF">
            <input name="extend_field" type="text" class="inputBg" value=""/><!-- {if $field.is_need} --><span style="color:#FF0000"> *</span><!-- {/if} -->
            </td>
        </tr>
        <!-- {/if} -->
		{/foreach}
                <tr>
                  <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_edit_profile" />
                    <input name="submit" type="submit" value="" class="bnt_blue_1" style="border:none;" />
                  </td>
                </tr>
       </table>
    </form>
     <form name="formPassword" action="user.php" method="post" onSubmit="return editPassword()" >
     <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">：</td>
          <td width="76%" align="left" bgcolor="#FFFFFF"><input name="old_password" type="password" size="25"  class="inputBg" /></td>
        </tr>
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">：</td>
          <td align="left" bgcolor="#FFFFFF"><input name="new_password" type="password" size="25"  class="inputBg" /></td>
        </tr>
        <tr>
          <td width="28%" align="right" bgcolor="#FFFFFF">：</td>
          <td align="left" bgcolor="#FFFFFF"><input name="comfirm_password" type="password" size="25"  class="inputBg" /></td>
        </tr>
        <tr>
          <td colspan="2" align="center" bgcolor="#FFFFFF"><input name="act" type="hidden" value="act_edit_password" />
            <input name="submit" type="submit" class="bnt_blue_1" style="border:none;" value="" />
          </td>
        </tr>
      </table>
    </form>
     <!--{/if}-->
     <!--#用户信息界面 end-->
     <!-- {if $action eq 'bonus'} 用户的红包列表 start-->
      <script type="text/javascript">
        {foreach from=$lang.profile_js item=item key=key}
          var  = "";
        {/foreach}
      </script>
      <h5><span></span></h5>
      <div class="blank"></div>
       <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <th align="center" bgcolor="#FFFFFF"></th>
          <th align="center" bgcolor="#FFFFFF"></th>
          <th align="center" bgcolor="#FFFFFF"></th>
          <th align="center" bgcolor="#FFFFFF"></th>
          <th align="center" bgcolor="#FFFFFF"></th>
          <th align="center" bgcolor="#FFFFFF"></th>
        </tr>
        <!-- {if $bonus} -->
        <!--{foreach from=$bonus item=item}-->
        <tr>
          <td align="center" bgcolor="#FFFFFF">{$item.bonus_sn|default:N/A}</td>
          <td align="center" bgcolor="#FFFFFF"></td>
          <td align="center" bgcolor="#FFFFFF"></td>
          <td align="center" bgcolor="#FFFFFF"></td>
          <td align="center" bgcolor="#FFFFFF"></td>
          <td align="center" bgcolor="#FFFFFF"></td>
        </tr>
        <!--{/foreach}-->
        <!-- {else} -->
        <tr>
          <td colspan="6" bgcolor="#FFFFFF"></td>
        </tr>
        <!-- {/if} -->
      </table>
      <div class="blank5"></div>
      <div th:replace="common/tpls/pages_tpl::pages"></div>
      <div class="blank5"></div>
      <h5><span></span></h5>
      <div class="blank"></div>
      <form name="addBouns" action="user.php" method="post" onSubmit="return addBonus()">
        <div style="padding: 15px;">
        
          <input name="bonus_sn" type="text" size="30" class="inputBg" />
          <input type="hidden" name="act" value="act_add_bonus" class="inputBg" />
          <input type="submit" class="bnt_blue_1" style="border:none;" value="" />
        </div>
      </form>
    <!-- {/if} -->
   <!--用户红包结束-->
      <!--#订单列表界面 start-->
       <!-- {if $action eq 'order_list'} -->
       <h5><span></span></h5>
       <div class="blank"></div>
       <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr align="center">
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
          </tr>
          <!--{foreach from=$orders item=item}-->
          <tr>
            <td align="center" bgcolor="#ffffff"><a href="user.html?act=order_detail&order_id=" class="f6"></a></td>
            <td align="center" bgcolor="#ffffff"></td>
            <td align="right" bgcolor="#ffffff"></td>
            <td align="center" bgcolor="#ffffff"></td>
            <td align="center" bgcolor="#ffffff"><font class="f6"></font></td>
          </tr>
          <!--{/foreach}-->
          </table>
        <div class="blank5"></div>
       <div th:replace="common/tpls/pages_tpl::pages"></div>
       <div class="blank5"></div>
       <h5><span></span></h5>
       <div class="blank"></div>
        <script type="text/javascript">
        {foreach from=$lang.merge_order_js item=item key=key}
          var  = "";
        {/foreach}
        </script>
        <form action="user.php" method="post" name="formOrder" onsubmit="return mergeOrder()">
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td width="22%" align="right" bgcolor="#ffffff">:</td>
              <td width="12%" align="left" bgcolor="#ffffff"><select name="to_order">
              <option value="0"></option>

                  {html_options options=$merge}

                </select></td>
              <td width="19%" align="right" bgcolor="#ffffff">:</td>
              <td width="11%" align="left" bgcolor="#ffffff"><select name="from_order">
              <option value="0"></option>

                  {html_options options=$merge}

                </select></td>
              <td width="36%" bgcolor="#ffffff">&nbsp;<input name="act" value="merge_order" type="hidden" />
              <input type="submit" name="Submit"  class="bnt_blue_1" style="border:none;"  value="" /></td>
            </tr>
            <tr>
              <td bgcolor="#ffffff">&nbsp;</td>
              <td colspan="4" align="left" bgcolor="#ffffff"></td>
            </tr>
          </table>
        </form>
       <!--{/if}-->
      <!--#订单列表界面 end-->
       <!--#包裹状态查询界面 start-->
      <!-- {if $action eq 'track_packages'} -->
        <h5><span></span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd" id="order_table">
        <tr align="center">
          <td bgcolor="#ffffff"></td>
          <td bgcolor="#ffffff"></td>
        </tr>
        <!--{foreach from=$orders item=item}-->
        <tr>
          <td align="center" bgcolor="#ffffff"><a href="user.html?act=order_detail&order_id="></a></td>
          <td align="center" bgcolor="#ffffff"></td>
        </tr>
        <!--{/foreach}-->
      </table>
      <script>
      var query_status = '';
      var ot = document.getElementById('order_table');
      for (var i = 1; i < ot.rows.length; i++)
      {
        var row = ot.rows[i];
        var cel = row.cells[1];
        cel.getElementsByTagName('a').item(0).innerHTML = query_status;
      }
      </script>
      <div class="blank5"></div>
      <div th:replace="common/tpls/pages_tpl::pages"></div>
      <!--{/if}-->
    <!--#包裹状态查询界面 end-->
     <!-- ==========订单详情页面,包括：订单状态，商品列表，费用总计，收货人信息，支付方式，其它信息========== -->
      <!--{if $action eq order_detail} -->
        <h5><span></span></h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <td width="15%" align="right" bgcolor="#ffffff">：</td>
          <td align="left" bgcolor="#ffffff">
          <!-- {if $order.extension_code eq "group_buy"} -->
					<a href="./group_buy.html?act=view&id=" class="f6"><strong></strong></a>
					<!-- {elseif $order.extension_code eq "exchange_goods"} -->
					<a href="./exchange.html?act=view&id=" class="f6"><strong></strong></a>
					<!--{/if}-->  
					<a href="user.html?act=message_list&order_id=" class="f6">[]</a>
					</td>
        </tr>
        <tr>
          <td align="right" bgcolor="#ffffff">：</td>
          <td align="left" bgcolor="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
        <tr>
          <td align="right" bgcolor="#ffffff">：</td>
          <td align="left" bgcolor="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp;{if $order.order_amount gt 0}{/if}</td>
        </tr>
        <tr>
          <td align="right" bgcolor="#ffffff">：</td>
          <td align="left" bgcolor="#ffffff">&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
        <!-- {if $order.invoice_no}-->
        <tr>
          <td align="right" bgcolor="#ffffff">：</td>
          <td align="left" bgcolor="#ffffff"></td>
        </tr>
        <!--{/if}-->
        <!--{if $order.to_buyer}-->
        <tr>
          <td align="right" bgcolor="#ffffff">：</td>
          <td align="left" bgcolor="#ffffff"></td>
        </tr>
        <!-- {/if} -->

        <!--{if $virtual_card}-->
        <tr>
          <td align="right" bgcolor="#ffffff">：</td>
          <td colspan="3" align="left" bgcolor="#ffffff">
          <!--{foreach from=$virtual_card item=vgoods}-->
            <!--{foreach from=$vgoods.info item=card}-->
              <!--{if $card.card_sn}-->:<span style="color:red;"></span><!--{/if}-->
              <!--{if $card.card_password}-->:<span style="color:red;"></span><!--{/if}-->
              <!--{if $card.end_date}-->:<!--{/if}--><br />
            <!--{/foreach}-->
          <!--{/foreach}-->
          </td>
        </tr>
        <!--{/if}-->
      </table>
        <div class="blank"></div>
        <h5><span></span>
        <!-- {if $allow_to_cart} -->
        <a href="javascript:;" onclick="returnToCart()" class="f6"></a>
        <!-- {/if} -->
        </h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <th width="23%" align="center" bgcolor="#ffffff"></th>
            <th width="29%" align="center" bgcolor="#ffffff"></th>
            <!--<th></th>-->
            <th width="26%" align="center" bgcolor="#ffffff"><!-- {if $order.extension_code eq "group_buy"} --><!-- {/if} --></th>
            <th width="9%" align="center" bgcolor="#ffffff"></th>
            <th width="20%" align="center" bgcolor="#ffffff"></th>
          </tr>
          <!-- {foreach from=$goods_list item=goods} -->
          <tr>
            <td bgcolor="#ffffff">
              <!-- {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'} 商品 -->
                <a href="goods.html?id=" target="_blank" class="f6"></a>
                <!-- {if $goods.parent_id > 0} -->
                <span style="color:#FF0000">（）</span>
                <!-- {elseif $goods.is_gift} -->
                <span style="color:#FF0000">（）</span>
                <!-- {/if} -->
              <!-- {elseif $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
                <a href="javascript:void(0)" onclick="setSuitShow()" class="f6"><span style="color:#FF0000;">（礼包）</span></a>
                <div id="suit_" style="display:none">
                    <!-- {foreach from=$goods.package_goods_list item=package_goods_list} -->
                      <a href="goods.html?id=" target="_blank" class="f6"></a><br />
                    <!-- {/foreach} -->
                </div>
              <!-- {/if} -->
              </td>
            <td align="left" bgcolor="#ffffff"></td>
            <!--<td align="right"></td>-->
            <td align="right" bgcolor="#ffffff"></td>
            <td align="center" bgcolor="#ffffff"></td>
            <td align="right" bgcolor="#ffffff"></td>
          </tr>
          <!-- {/foreach} -->
          <tr>
            <td colspan="8" bgcolor="#ffffff" align="right">
            <!-- {if $order.extension_code eq "group_buy"} --><!-- {/if} -->: 
            </td>
          </tr>
        </table>
         <div class="blank"></div>
        <h5><span></span></h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td align="right" bgcolor="#ffffff">
                <!-- {if $order.extension_code eq "group_buy"} --><!-- {/if} -->: 
              <!-- {if $order.discount gt 0} 折扣 -->
              - : 
              <!-- {/if} -->
              <!-- {if $order.tax gt 0} -->
              + : 
              <!-- {/if} -->
              <!-- {if $order.shipping_fee > 0} -->
              + : 
              <!-- {/if} -->
              <!-- {if $order.insure_fee > 0} -->
              + : 
              <!-- {/if} -->
              <!-- {if $order.pay_fee > 0} -->
              + : 
              <!-- {/if} -->
              <!-- {if $order.pack_fee > 0} -->
              + : 
              <!-- {/if} -->
              <!-- {if $order.card_fee > 0} -->
              + : 
              <!-- {/if} -->        </td>
          </tr>
          <tr>
            <td align="right" bgcolor="#ffffff">
              <!-- {if $order.money_paid > 0} -->
              - : 
              <!-- {/if} -->
              <!-- {if $order.surplus > 0} -->
              - : 
              <!-- {/if} -->
              <!-- {if $order.integral_money > 0} -->
              - : 
              <!-- {/if} -->
              <!-- {if $order.bonus > 0} -->
              - : 
              <!-- {/if} -->        </td>
          </tr>
          <tr>
            <td align="right" bgcolor="#ffffff">: 
            <!-- {if $order.extension_code eq "group_buy"} --><br />
            <!-- {/if} --></td>
          </tr>
            <!-- {if $allow_edit_surplus} 如果可以编辑使用余额数 -->
          <tr>
            <td align="right" bgcolor="#ffffff">
      <form action="user.php" method="post" name="formFee" id="formFee">:
            <input name="surplus" type="text" size="8" value="0" style="border:1px solid #ccc;"/>
            <input type="submit" name="Submit" class="submit" value="" />
      <input type="hidden" name="act" value="act_edit_surplus" />
      <input type="hidden" name="order_id" value="" />
      </form></td>
          </tr>
    <!--{/if}-->
        </table>
         <div class="blank"></div>
        <h5><span></span></h5>
        <div class="blank"></div>
         <!-- {if $order.allow_update_address gt 0} -->
          <form action="user.php" method="post" name="formAddress" id="formAddress">
           <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
              <tr>
                <td width="15%" align="right" bgcolor="#ffffff">： </td>
                <td width="35%" align="left" bgcolor="#ffffff"><input name="consignee" type="text"  class="inputBg" value="" size="25">
                </td>
                <td width="15%" align="right" bgcolor="#ffffff">： </td>
                <td width="35%" align="left" bgcolor="#ffffff"><input name="email" type="text"  class="inputBg" value="" size="25" />
                </td>
              </tr>
              <!-- {if $order.exist_real_goods} -->
              <!-- 只有虚拟商品处理-->
              <tr>
                <td align="right" bgcolor="#ffffff">： </td>
                <td align="left" bgcolor="#ffffff"><input name="address" type="text" class="inputBg" value=" " size="25" /></td>
                <td align="right" bgcolor="#ffffff">：</td>
                <td align="left" bgcolor="#ffffff"><input name="zipcode" type="text"  class="inputBg" value="" size="25" /></td>
              </tr>
              <!--{/if}-->
              <tr>
                <td align="right" bgcolor="#ffffff">：</td>
                <td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="inputBg" value="" size="25" /></td>
                <td align="right" bgcolor="#ffffff">：</td>
                <td align="left" bgcolor="#ffffff"><input name="mobile" type="text"  class="inputBg" value="" size="25" /></td>
              </tr>
              <!-- {if $order.exist_real_goods} -->
              <!-- 只有虚拟商品处理-->
              <tr>
                <td align="right" bgcolor="#ffffff">：</td>
                <td align="left" bgcolor="#ffffff"><input name="sign_building" class="inputBg" type="text" value="" size="25" />
                </td>
                <td align="right" bgcolor="#ffffff">：</td>
                <td align="left" bgcolor="#ffffff"><input name="best_time" type="text" class="inputBg" value="" size="25" />
                </td>
              </tr>
              <!-- {/if}-->
              <tr>
                <td colspan="4" align="center" bgcolor="#ffffff"><input type="hidden" name="act" value="save_order_address" />
                  <input type="hidden" name="order_id" value="" />
                  <input type="submit" class="bnt_blue_2" value=""  />
                </td>
              </tr>
            </table>
          </form>
          <!-- {else} -->
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td width="15%" align="right" bgcolor="#ffffff">：</td>
              <td width="35%" align="left" bgcolor="#ffffff"></td>
              <td width="15%" align="right" bgcolor="#ffffff" >：</td>
              <td width="35%" align="left" bgcolor="#ffffff"></td>
            </tr>
            <!-- {if $order.exist_real_goods} -->
            <tr>
              <td align="right" bgcolor="#ffffff">：</td>
              <td colspan="3" align="left" bgcolor="#ffffff">
                <!-- {if $order.zipcode} -->
                [: ]
                <!-- {/if} --></td>
            </tr>
            <!-- {/if}-->
            <tr>
              <td align="right" bgcolor="#ffffff">：</td>
              <td align="left" bgcolor="#ffffff"> </td>
              <td align="right" bgcolor="#ffffff">：</td>
              <td align="left" bgcolor="#ffffff"></td>
            </tr>
            <!-- {if $order.exist_real_goods} -->
            <tr>
              <td align="right" bgcolor="#ffffff" >：</td>
              <td align="left" bgcolor="#ffffff"> </td>
              <td align="right" bgcolor="#ffffff" >：</td>
              <td align="left" bgcolor="#ffffff"></td>
            </tr>
            <!--{/if}-->
          </table>
          <!-- {/if} -->
          <div class="blank"></div>
        <h5><span></span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                  <td bgcolor="#ffffff">
                  : 。: <strong></strong><br />
                  
                  </td>
                </tr>
                  <tr>
                  <td bgcolor="#ffffff" align="right">
                  <!--{if $payment_list}-->
              <form name="payment" method="post" action="user.php">
              :
              <select name="pay_id">
                <!--{foreach from=$payment_list item=payment}-->
                <option value="">
                (:)
                </option>
                <!--{/foreach}-->
              </select>
              <input type="hidden" name="act" value="act_edit_payment" />
              <input type="hidden" name="order_id" value="" />
              <input type="submit" name="Submit" class="submit" value="" />
              </form>
              <!--{/if}-->
                  </td>
                </tr>
              </table>
        <div class="blank"></div>
        <h5><span></span></h5>
        <div class="blank"></div>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <!-- {if $order.shipping_id > 0} -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">：</td>
            <td colspan="3" width="85%" align="left" bgcolor="#ffffff"></td>
          </tr>
          <!-- {/if} -->

          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">：</td>
            <td colspan="3" align="left" bgcolor="#ffffff"></td>
          </tr>
          <!--{if $order.insure_fee > 0}-->
          <!--{/if}-->
          <!-- {if $order.pack_name} 是否使用包装 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">：</td>
            <td colspan="3" align="left" bgcolor="#ffffff"></td>
          </tr>
          <!-- {/if} 是否使用包装 -->
          <!-- {if $order.card_name} 是否使用贺卡 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">：</td>
            <td colspan="3" align="left" bgcolor="#ffffff"></td>
          </tr>
          <!-- {/if} -->
          <!-- {if $order.card_message} 是否使用贺卡 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">：</td>
            <td colspan="3" align="left" bgcolor="#ffffff"></td>
          </tr>
          <!-- {/if} 是否使用贺卡 -->
          <!-- {if $order.surplus > 0} 是否使用余额 -->
          <!-- {/if} -->
          <!-- {if $order.integral > 0} 是否使用积分 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">：</td>
            <td colspan="3" align="left" bgcolor="#ffffff"></td>
          </tr>
          <!-- {/if} 是否使用积分 -->
          <!-- {if $order.bonus > 0} 是否使用红包 -->
          <!-- {/if} -->
          <!-- {if $order.inv_payee && $order.inv_content} 是否开发票 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">：</td>
            <td width="36%" align="left" bgcolor="#ffffff"></td>
            <td width="19%" align="right" bgcolor="#ffffff">：</td>
            <td width="25%" align="left" bgcolor="#ffffff"></td>
          </tr>
          <!-- {/if} -->
          <!-- {if $order.postscript} 是否有订单附言 -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">：</td>
            <td colspan="3" align="left" bgcolor="#ffffff"></td>
          </tr>
          <!-- {/if} -->
          <tr>
            <td width="15%" align="right" bgcolor="#ffffff">：</td>
            <td colspan="3" align="left" bgcolor="#ffffff"></td>
          </tr>
        </table>
      <!--{/if} -->
    <!--#订单详情页 end-->
    <!--#会员余额 start-->
      <!--{if $action eq "account_raply" || $action eq "account_log" || $action eq "account_deposit" || $action eq "account_detail"} -->
        <script type="text/javascript">
          {foreach from=$lang.account_js item=item key=key}
            var  = "";
          {/foreach}
        </script>
        <h5><span></span></h5>
        <div class="blank"></div>
         <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td align="right" bgcolor="#ffffff"><a href="user.html?act=account_deposit" class="f6"></a> | <a href="user.html?act=account_raply" class="f6"></a> | <a href="user.html?act=account_detail" class="f6"></a> | <a href="user.html?act=account_log" class="f6"></a> </td>
          </tr>
        </table>
        <!-- {/if} -->
        <!-- {if $action eq "account_raply"} -->
        <form name="formSurplus" method="post" action="user.php" onSubmit="return submitSurplus()">
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td width="15%" bgcolor="#ffffff">:</td>
            <td bgcolor="#ffffff" align="left"><input type="text" name="amount" value="" class="inputBg" size="30" />
            </td>
          </tr>
          <tr>
            <td bgcolor="#ffffff">:</td>
            <td bgcolor="#ffffff" align="left"><textarea name="user_note" cols="55" rows="6" style="border:1px solid #ccc;"></textarea></td>
          </tr>
          <tr>
            <td bgcolor="#ffffff" colspan="2" align="center">
            <input type="hidden" name="surplus_type" value="1" />
              <input type="hidden" name="act" value="act_account" />
              <input type="submit" name="submit"  class="bnt_blue_1" value="" />
              <input type="reset" name="reset" class="bnt_blue_1" value="" />
            </td>
          </tr>
        </table>
        </form>
        <!-- {/if} -->
        <!-- {if $action eq "account_deposit"} -->
        <form name="formSurplus" method="post" action="user.php" onSubmit="return submitSurplus()">
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr>
              <td width="15%" bgcolor="#ffffff">:</td>
              <td align="left" bgcolor="#ffffff"><input type="text" name="amount"  class="inputBg" value="" size="30" /></td>
            </tr>
            <tr>
              <td bgcolor="#ffffff">:</td>
              <td align="left" bgcolor="#ffffff"><textarea name="user_note" cols="55" rows="6" style="border:1px solid #ccc;"></textarea></td>
            </tr>
          </table>
          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
            <tr align="center">
              <td bgcolor="#ffffff"  colspan="3" align="left">:</td>
            </tr>
            <tr align="center">
              <td bgcolor="#ffffff"></td>
              <td bgcolor="#ffffff" width="60%"></td>
              <td bgcolor="#ffffff" width="17%"></td>
            </tr>
            <!-- {foreach from=$payment item=list} -->
            <tr>
              <td bgcolor="#ffffff" align="left">
              <input type="radio" name="payment_id" value="" /></td>
              <td bgcolor="#ffffff" align="left"></td>
              <td bgcolor="#ffffff" align="center"></td>
            </tr>
            <!-- {/foreach} -->
            <tr>
        <td bgcolor="#ffffff" colspan="3"  align="center">
        <input type="hidden" name="surplus_type" value="0" />
          <input type="hidden" name="rec_id" value="" />
          <input type="hidden" name="act" value="act_account" />
          <input type="submit" class="bnt_blue_1" name="submit" value="" />
          <input type="reset" class="bnt_blue_1" name="reset" value="" />
        </td>
      </tr>
          </table>
        </form>
        <!-- {/if} -->
        <!-- {if $action eq "act_account"} -->
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td width="25%" align="right" bgcolor="#ffffff"></td>
            <td width="80%" bgcolor="#ffffff"></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
          </tr>
          <tr>
            <td align="right" valign="middle" bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
          </tr>
          <tr>
            <td colspan="2" bgcolor="#ffffff"></td>
          </tr>
        </table>
        <!-- {/if} -->
       <!-- {if $action eq "account_detail"} -->
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr align="center">
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
          </tr>
          <!--{foreach from=$account_log item=item}-->
          <tr>
            <td align="center" bgcolor="#ffffff"></td>
            <td align="center" bgcolor="#ffffff"></td>
            <td align="right" bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff" th:attr="title=${item.change_desc}">&nbsp;&nbsp;</td>
          </tr>
          <!--{/foreach}-->
          <tr>
            <td colspan="4" align="center" bgcolor="#ffffff"><div align="right"></div></td>
          </tr>
        </table>
        <div th:replace="common/tpls/pages_tpl::pages"></div>
        <!-- {/if} -->
        <!-- {if $action eq "account_log"} -->
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr align="center">
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
            <td bgcolor="#ffffff"></td>
          </tr>
          <!--{foreach from=$account_log item=item}-->
          <tr>
            <td align="center" bgcolor="#ffffff"></td>
            <td align="left" bgcolor="#ffffff"></td>
            <td align="right" bgcolor="#ffffff"></td>
            <td align="left" bgcolor="#ffffff"></td>
            <td align="left" bgcolor="#ffffff"></td>
            <td align="center" bgcolor="#ffffff"></td>
            <td align="right" bgcolor="#ffffff">
              <!-- {if ($item.is_paid eq 0 && $item.process_type eq 1) || $item.handle} -->
              <a href="user.html?act=cancel&id=" onclick="if (!confirm('')) return false;"></a>
              <!-- {/if} -->
                            </td>
          </tr>
          <!--{/foreach}-->
          <tr>
            <td colspan="7" align="right" bgcolor="#ffffff"></td>
          </tr>
        </table>
        <div th:replace="common/tpls/pages_tpl::pages"></div>
      <!-- {/if} -->
      <!--#会员余额 end-->
      <!--#收货地址页面 -->
      <!--{if $action eq 'address_list'} -->
        <h5><span></span></h5>
        <div class="blank"></div>
         
            <!-- auto replace start-->
<script type="text/javascript" src="/static/js/utils.js"></script>
<script type="text/javascript" src="/static/js/transport_jquery.js"></script>
<script type="text/javascript" src="/static/js/region.js"></script>
<script type="text/javascript" src="/static/js/shopping_flow.js"></script>
<!-- auto replace end-->
            <script type="text/javascript">
              region.isAdmin = false;
              {foreach from=$lang.flow_js item=item key=key}
              var  = "";
              {/foreach}
              {literal}
              onload = function() {
                if (!document.all)
                {
                  document.forms['theForm'].reset();
                }
              }
              {/literal}
            </script>
            <!-- {foreach from=$consignee_list item=consignee key=sn} -->
            <form action="user.php" method="post" name="theForm" onsubmit="return checkConsignee(this)">
              <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                  <td align="right" bgcolor="#ffffff">：</td>
                  <td colspan="3" align="left" bgcolor="#ffffff"><select name="country" id="selCountries_" onchange="region.changed(this, 1, 'selProvinces_')">
                      <option value="0"></option>
                      <!-- {foreach from=$country_list item=country} -->
                      <option value="" {if $consignee.country eq $country.region_id}selected{/if}></option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="province" id="selProvinces_" onchange="region.changed(this, 2, 'selCities_')">
                      <option value="0"></option>
                      <!-- {foreach from=$province_list.$sn item=province} -->
                      <option value="" {if $consignee.province eq $province.region_id}selected{/if}></option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="city" id="selCities_" onchange="region.changed(this, 3, 'selDistricts_')">
                      <option value="0"></option>
                      <!-- {foreach from=$city_list.$sn item=city} -->
                      <option value="" {if $consignee.city eq $city.region_id}selected{/if}></option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="district" id="selDistricts_" {if !$district_list.$sn}style="display:none"{/if}>
                      <option value="0"></option>
                      <!-- {foreach from=$district_list.$sn item=district} -->
                      <option value="" {if $consignee.district eq $district.region_id}selected{/if}></option>
                      <!-- {/foreach} -->
                    </select>
                   </td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">：</td>
                  <td align="left" bgcolor="#ffffff"><input name="consignee" type="text" class="inputBg" id="consignee_" value="" />
                   </td>
                  <td align="right" bgcolor="#ffffff">：</td>
                  <td align="left" bgcolor="#ffffff"><input name="email" type="text" class="inputBg" id="email_" value="" />
                  </td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">：</td>
                  <td align="left" bgcolor="#ffffff"><input name="address" type="text" class="inputBg" id="address_" value="" />
                  </td>
                  <td align="right" bgcolor="#ffffff">：</td>
                  <td align="left" bgcolor="#ffffff"><input name="zipcode" type="text" class="inputBg" id="zipcode_" value="" /></td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">：</td>
                  <td align="left" bgcolor="#ffffff"><input name="tel" type="text" class="inputBg" id="tel_" value="" />
                  </td>
                  <td align="right" bgcolor="#ffffff">：</td>
                  <td align="left" bgcolor="#ffffff"><input name="mobile" type="text" class="inputBg" id="mobile_" value="" /></td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">：</td>
                  <td align="left" bgcolor="#ffffff"><input name="sign_building" type="text" class="inputBg" id="sign_building_" value="" /></td>
                  <td align="right" bgcolor="#ffffff">：</td>
                  <td align="left" bgcolor="#ffffff"><input name="best_time" type="text"  class="inputBg" id="best_time_" value="" /></td>
                </tr>
                <tr>
                  <td align="right" bgcolor="#ffffff">&nbsp;</td>
                  <td colspan="3" align="center" bgcolor="#ffffff"><!-- {if $consignee.consignee && $consignee.email} -->
                    <input type="submit" name="submit" class="bnt_blue_1" value="" />
                    <input name="button" type="button" class="bnt_blue"  onclick="if (confirm(''))location.href='user.php?act=drop_consignee&id='" value="" />
                    <!-- {else} -->
                    <input type="submit" name="submit" class="bnt_blue_2"  value=""/>
                    <!-- {/if} -->
                    <input type="hidden" name="act" value="act_edit_address" />
                    <input name="address_id" type="hidden" value="" />
                  </td>
                </tr>
              </table>
            </form>
            <!-- {/foreach} -->
      <!--{/if} -->
    <!--#收货地址添加页面 -->
      <!--* 积分兑换-->
       <!--{if $action eq 'transform_points'} -->
       <h5><span></span></h5>
             <div class="blank"></div>
       <!--{if $exchange_type eq 'ucenter'}-->
        <form action="user.php" method="post" name="transForm" onsubmit="return calcredit();">
       <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
                <tr>
                    <th width="120" bgcolor="#FFFFFF" align="right" valign="top">:</th>
                    <td bgcolor="#FFFFFF">
                    <label for="pay_points">:</label><input type="text" size="15" id="pay_points" name="pay_points" value="" style="border:0;border-bottom:1px solid #DADADA;" readonly="readonly" /><br />
                    <div class="blank"></div>
                    <label for="rank_points">:</label><input type="text" size="15" id="rank_points" name="rank_points" value="" style="border:0;border-bottom:1px solid #DADADA;" readonly="readonly" />
                    </td>
                    </tr>
          <tr><td bgcolor="#FFFFFF">&nbsp;</td>
          <td bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
          <tr>
            <th align="right" bgcolor="#FFFFFF"><label for="amount">:</label></th>
            <td bgcolor="#FFFFFF"><input size="15" name="amount" id="amount" value="0" onkeyup="calcredit();" type="text" />
                <select name="fromcredits" id="fromcredits" onchange="calcredit();">
                  {html_options options=$lang.exchange_points selected=$selected_org}
                </select>
            </td>
          </tr>
          <tr>
            <th align="right" bgcolor="#FFFFFF"><label for="desamount">:</label></th>
            <td bgcolor="#FFFFFF"><input type="text" name="desamount" id="desamount" disabled="disabled" value="0" size="15" />
              <select name="tocredits" id="tocredits" onchange="calcredit();">
                {html_options options=$to_credits_options selected=$selected_dst}
              </select>
            </td>
          </tr>
          <tr>
            <th align="right" bgcolor="#FFFFFF">:</th>
            <td bgcolor="#FFFFFF">1 <span id="orgcreditunit"></span> <span id="orgcredittitle"></span>  <span id="descreditamount"></span> <span id="descreditunit"></span> <span id="descredittitle"></span></td>
          </tr>
          <tr><td bgcolor="#FFFFFF">&nbsp;</td>
          <td bgcolor="#FFFFFF"><input type="hidden" name="act" value="act_transform_ucenter_points" /><input type="submit" name="transfrom" value="" /></td></tr>
  </table>
        </form>
       <script type="text/javascript">
        {foreach from=$lang.exchange_js item=lang_js key=key}
        var  = '';
        {/foreach}

        var out_exchange_allow = new Array();
        {foreach from=$out_exchange_allow item=ratio key=key}
        out_exchange_allow[''] = '';
        {/foreach}

        function calcredit()
        {
            var frm = document.forms['transForm'];
            var src_credit = frm.fromcredits.value;
            var dest_credit = frm.tocredits.value;
            var in_credit = frm.amount.value;
            var org_title = frm.fromcredits[frm.fromcredits.selectedIndex].innerHTML;
            var dst_title = frm.tocredits[frm.tocredits.selectedIndex].innerHTML;
            var radio = 0;
            var shop_points = ['rank_points', 'pay_points'];
            if (parseFloat(in_credit) > parseFloat(document.getElementById(shop_points[src_credit]).value))
            {
                alert(balance.replace('{%s}', org_title));
                frm.amount.value = frm.desamount.value = 0;
                return false;
            }
            if (typeof(out_exchange_allow[dest_credit+'|'+src_credit]) == 'string')
            {
                radio = (1 / parseFloat(out_exchange_allow[dest_credit+'|'+src_credit])).toFixed(2);
            }
            document.getElementById('orgcredittitle').innerHTML = org_title;
            document.getElementById('descreditamount').innerHTML = radio;
            document.getElementById('descredittitle').innerHTML = dst_title;
            if (in_credit > 0)
            {
                if (typeof(out_exchange_allow[dest_credit+'|'+src_credit]) == 'string')
                {
                    frm.desamount.value = Math.floor(parseFloat(in_credit) / parseFloat(out_exchange_allow[dest_credit+'|'+src_credit]));
                    frm.transfrom.disabled = false;
                    return true;
                }
                else
                {
                    frm.desamount.value = deny;
                    frm.transfrom.disabled = true;
                    return false;
                }
            }
            else
            {
                return false;
            }
        }
       </script>
       <!--{else}-->
        <b>:</b>
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <td width="30%" valign="top" bgcolor="#FFFFFF"><table border="0">
              <!--{foreach from=$bbs_points item=points}-->
              <tr>
                <th>:</th>
                <td width="120" style="border-bottom:1px solid #DADADA;"></td>
              </tr>
              <!--{/foreach} -->
            </table></td>
            <td width="50%" valign="top" bgcolor="#FFFFFF"><table>
                    <tr>
                <th>:</th>
                <td width="120" style="border-bottom:1px solid #DADADA;"></td>
                    </tr>
              <tr>
                <th>:</th>
                <td width="120" style="border-bottom:1px solid #DADADA;"></td>
              </tr>
            </table></td>
          </tr>
        </table>
        <br />
        <b>:</b>
        <ul class="point clearfix">
          <!-- {foreach from=$rule_list item=rule} -->
          <li><font class="f1">·</font>""  ""  
          <!-- {/foreach} -->
        </ul>

        <form action="user.php" method="post" name="theForm">
        <table width="100%" border="1" align="center" cellpadding="5" cellspacing="0" style="border-collapse:collapse;border:1px solid #DADADA;">
          <tr style="background:#F1F1F1;">
            <th></th>
            <th></th>
            <th></th>
          </tr>
          <tr>
            <td>
              <select name="rule_index" onchange="changeRule()">
                <!--{foreach from=$rule_list item=rule key=key}-->
                <option value="">-></option>
                <!--{/foreach}-->
              </select>
          </td>
          <td>
            <input type="text" name="num" value="0" onkeyup="calPoints()"/>
          </td>
          <td><span id="ECS_RESULT">0</span></td>
          </tr>
          <tr>
            <td colspan="3" align="center"><input type="hidden" name="act" value="act_transform_points"  /><input type="submit" value="" /></td>
          </tr>
        </table>
        </form>
       <script type="text/javascript">
          //<![CDATA[
            var rule_list = new Object();
            var invalid_input = '';
            {foreach from=$rule_list item=rule key=key}
            rule_list[''] = '';
            {/foreach}
            function calPoints()
            {
              var frm = document.forms['theForm'];
              var rule_index = frm.elements['rule_index'].value;
              var num = parseInt(frm.elements['num'].value);
              var rate = rule_list[rule_index];

              if (isNaN(num) || num < 0 || num != frm.elements['num'].value)
              {
                document.getElementById('ECS_RESULT').innerHTML = invalid_input;
                rerutn;
              }
              var arr = rate.split(':');
              var from = parseInt(arr[0]);
              var to = parseInt(arr[1]);

              if (from <=0 || to <=0)
              {
                from = 1;
                to = 0;
              }
              document.getElementById('ECS_RESULT').innerHTML = parseInt(num * to / from);
            }

            function changeRule()
            {
              document.forms['theForm'].elements['num'].value = 0;
              document.getElementById('ECS_RESULT').innerHTML = 0;
            }
          //]]>
       </script>
       <!--{/if}-->
        <!--{/if} -->
        <!--#积分兑换 -->




      </div>
     </div>
    </div>
  </div>
  <!--right end-->
</div>
<div class="blank"></div>
<div th:replace="common/tpls/page_footer_tpl::page_footer"></div>
</body>
<script type="text/javascript">
{foreach from=$lang.clips_js item=item key=key}
var  = "";
{/foreach}
</script>
</html>
